//
//  SwitchSettingCell.m
//  GIFShow
//
//  Created by lanou11air029 on 15/4/13.
//  Copyright (c) 2015年 CK. All rights reserved.
//

#import "SwitchSettingCell.h"

@interface SwitchSettingCell ()
@property (nonatomic, strong) UILabel * titleTextLabel;
@end

@implementation SwitchSettingCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupSubViews];
    }
    return self;
}
-(void)setupSubViews{
    self.titleTextLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, self.frame.size.width * 0.5, self.frame.size.height)];
    [self addSubview:self.titleTextLabel];
    UISwitch * cellSwitch = [[UISwitch alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width*0.8, 5, self.frame.size.width*0.2, self.frame.size.height)];
    cellSwitch.onTintColor = [UIColor greenColor];
    cellSwitch.tintColor = [UIColor redColor];
    //    cellSwitch.thumbTintColor = [UIColor redColor];
    [self.contentView addSubview:cellSwitch];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
